<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:fn="http://java.sun.com/jsp/jstl/functions">
<h:head>
	<title>Rimuovi impiegato</title>
</h:head>
<body> 
	<p:panel header = "Rimozione impiegato">
	<h:form id="Elimina_impiegato" style="width:auto">
	 <p:growl id="growl" showDetail="true" sticky="true" severity="info"/> 
				<p:selectOneMenu id="lista_impiegati" value="#{employeeDeletionManagedBean.emailImpiegatoSelezionato}" style="margin:0.5em">
			    	<f:selectItems value="#{employeeDeletionManagedBean.impiegati}"/>
				</p:selectOneMenu>
				<div>
				<p:commandButton value="Elimina impiegato selezionato" action="#{employeeDeletionManagedBean.eliminaImpiegato()}" />
					        <p:commandButton value="Indietro" action="home?faces-redirect=true" styleClass="ui-priority-primary" ajax="false"/>
		        </div>
			</h:form>
			</p:panel>
		</body>
</html>

